package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.to.OrderLastPriceTo;
import com.atguigu.gulimall.product.vo.SkuInfoItemVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.SkuInfoEntity;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * sku信息
 *
 * @author leifengyang
 * @email leifengyang@gmail.com
 * @date 2019-10-01 21:08:49
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveSkuInfo(SkuInfoEntity skuInfoEntity);

    PageUtils queryPageByCondition(Map<String, Object> params);


    List getSkusBySpuId(Long spuId);

    SkuInfoItemVo item(Long skuId);

    BigDecimal getLastPrice(Long skuId);

    List<OrderLastPriceTo> getOrderLaetPrice(List<Long> skuIds);
}

